﻿#ifndef PROGRESSDAO_H
#define PROGRESSDAO_H

#include <progress.h>

class ProgressDao
{
public:
    explicit ProgressDao(QSqlDatabase sqlDatabase);
    ~ProgressDao();
    bool getList(QList<Progress> &list);
    bool getPageListByParam(QList<Progress> &list,const  uint64_t &page,const  uint64_t &pageSize);
    bool getTotalByParam(uint64_t &total);
    bool getOne(Progress &object);
    bool saveOne(Progress &object);
    bool deleteOne(Progress &object);
private:
    QSqlDatabase db;
};

#endif // PROGRESSDAO_H
